From: kfraser@localhost.localdomain Date: Thu, 4 Jan 2007 10:20:45 +0000 (+0000) Subject: [XEND] Fix allocation of fixed VNC ports. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15422^2~95 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=b7e67b038fe0d1ffbf5227024c06fe90b86a6d51;p=xen.git [XEND] Fix allocation of fixed VNC ports. From: MArk Williamson Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/server/vfbif.py b/tools/python/xen/xend/server/vfbif.py index d07cd2f9e8..816dcd5a6f 100644 --- a/tools/python/xen/xend/server/vfbif.py +++ b/tools/python/xen/xend/server/vfbif.py @@ -64,7 +64,7 @@ class VfbifController(DevController): if config.has_key("vncunused"): args += ["--unused"] elif config.has_key("vncdisplay"): - args += ["--vncport", "%d" % (5900 + config["vncdisplay"])] + args += ["--vncport", "%d" % (5900 + int(config["vncdisplay"]))] vnclisten = config.get("vnclisten", xen.xend.XendRoot.instance().get_vnclisten_address()) args += [ "--listen", vnclisten ]